import request from '@/utils/request'

/***
 *
 * 模板：return request({
        url:'',
        method:'get',
        params:data
      })
 */
const url = "http://localhost:80/provider";

export default {
  //查询
  HospitalAdd(data) {
    return request({
      url: url + '/admin/hosp/hospitalSet/getPageHosplist/' + data.pageindex + '/' + data.pagesize,//通过axios异步请求地址
      method: 'post',//请求方式
      data
      // params:''  //参数,如果是json的话就使用data属性，将params替换成data
    })
  },
  //删除
  Hospdelete(data) {

    return request({
      url: url + '/admin/hosp/hospitalSet/muchDelete',
      method: 'post',
      data
    })
  },
  HospAdd(data) {
    return request({
      url: url + '/admin/hosp/hospitalSet/addHosp',
      method: 'post',
      data
    })
  },
  HospUpdate(data) {
    return request({
      url: url + '/admin/hosp/hospitalSet/updateHosp',
      method: 'post',
      data
    })
  }

}
